/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mindbox.mueblesalpes.negocio.cliente;

import com.mindbox.mueblesalpes.negocio.entity.Cliente;
import com.mindbox.mueblesalpes.negocio.persistence.ClientePersistenceMock;
import com.mindbox.mueblesalpes.negocio.persistence.IClientePersistence;
import java.util.List;
import javax.ejb.Stateless;

/**
 *
 * @author Diana Carolina
 */
@Stateless
public class ClienteServiceBean implements ClienteServiceLocal {
    private IClientePersistence clienteMock = new ClientePersistenceMock();

    public ClienteServiceBean(){
    }
    
    public boolean crearCliente(Cliente cliente){
        if(clienteMock.crearCliente(cliente)){
            return true;
        }else return false;
    }
    public List<Cliente> buscarCliente(Cliente cliente){
        return clienteMock.buscarCliente(cliente);
    }
    public List<Cliente> mostrarClientes(){
        return clienteMock.mostrarClientes();
    }

    
}
